package com.zygh.policeasset.pojo;

import cn.afterturn.easypoi.util.PoiElUtil;

/* loaded from: police-asset-2.0-0.0.1-SNAPSHOT.jar:BOOT-INF/classes/com/zygh/policeasset/pojo/Department.class */
public class Department {
    private Integer id;
    private String departmentNum;
    private String departmentName;

    public void setId(Integer id) {
        this.id = id;
    }

    public void setDepartmentNum(String departmentNum) {
        this.departmentNum = departmentNum;
    }

    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof Department)) {
            return false;
        }
        Department other = (Department) o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$id = getId();
        Object other$id = other.getId();
        if (this$id == null) {
            if (other$id != null) {
                return false;
            }
        } else if (!this$id.equals(other$id)) {
            return false;
        }
        Object this$departmentNum = getDepartmentNum();
        Object other$departmentNum = other.getDepartmentNum();
        if (this$departmentNum == null) {
            if (other$departmentNum != null) {
                return false;
            }
        } else if (!this$departmentNum.equals(other$departmentNum)) {
            return false;
        }
        Object this$departmentName = getDepartmentName();
        Object other$departmentName = other.getDepartmentName();
        return this$departmentName == null ? other$departmentName == null : this$departmentName.equals(other$departmentName);
    }

    protected boolean canEqual(Object other) {
        return other instanceof Department;
    }

    public int hashCode() {
        Object $id = getId();
        int result = (1 * 59) + ($id == null ? 43 : $id.hashCode());
        Object $departmentNum = getDepartmentNum();
        int result2 = (result * 59) + ($departmentNum == null ? 43 : $departmentNum.hashCode());
        Object $departmentName = getDepartmentName();
        return (result2 * 59) + ($departmentName == null ? 43 : $departmentName.hashCode());
    }

    public String toString() {
        return "Department(id=" + getId() + ", departmentNum=" + getDepartmentNum() + ", departmentName=" + getDepartmentName() + PoiElUtil.RIGHT_BRACKET;
    }

    public Integer getId() {
        return this.id;
    }

    public String getDepartmentNum() {
        return this.departmentNum;
    }

    public String getDepartmentName() {
        return this.departmentName;
    }
}